package cn.wyu.service;

import cn.wyu.dao.userDao;
import cn.wyu.dao.userDaoimpl;
import cn.wyu.pojo.User;

import java.util.List;

public class userSericeimpl implements userService {

    userDao userdao;
    @Override
    public Boolean adduser(User user) {
        System.out.println("serviceImpl执行");
        userdao = new userDaoimpl();
        Boolean aBoolean = userdao.adduser(user);
        return  aBoolean;
    }

    @Override
    public String findUser(User user) {
        userdao = new userDaoimpl();
        String userName = userdao.findUser(user);
        return userName;
    }

    @Override
    public String getPassword(User user) {
        String password = userdao.getPassword(user);
        return password;
    }


}
